<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox"
	template="/layout/page/form/page-fieldset-template.xhtml">
 
	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="compTitle" value="菜单内容" />


	<ui:define name="compContent">
		
		<ui:decorate template="/layout/input/editable-template.xhtml">
			
			<!-- 第一行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="menuid" />
				<ui:param name="compBean1Lable" value="菜单目录编号 " />
				
				<ui:define name="compBean1Content">
					<sinox:inputText id="#{compBean1Id}" value="#{pageViewBean.menuid}" />
				</ui:define>
				
				<ui:param name="compBean2Id" value="displayName" />
				<ui:param name="compBean2Lable" value="菜单目录名称" />
				
				<ui:define name="compBean2Content">
					<sinox:inputText id="#{compBean2Id}" value="#{pageViewBean.displayName}" />
				</ui:define>
				
			</ui:decorate>
			
			<!-- 第二行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="description" />
				<ui:param name="compBean1Lable" value="菜单目录详细信息" />
				
				<ui:define name="compBean1Content">
					<sinox:inputText id="#{compBean1Id}" value="#{pageViewBean.description}" />
				</ui:define>
				
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			
				<ui:param name="compBean1Id" value="image24" />
				<ui:param name="compBean1Lable" value="菜单显示图片（大）" />
				
				<ui:define name="compBean1Content">
					<sinox:inputText id="#{compBean1Id}" value="#{pageViewBean.image24}" />
				</ui:define>
				
				<ui:param name="compBean2Id" value="image16" />
				<ui:param name="compBean2Lable" value="菜单显示图片（小）" />
				
				<ui:define name="compBean2Content">
					<sinox:inputText id="#{compBean2Id}" value="#{pageViewBean.image16}" />
				</ui:define>
				
			</ui:decorate>
			
			<!-- 第四行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="cmdId" />
				<ui:param name="compBean1Lable" value="菜单命令" />
				
				<ui:define name="compBean1Content">
					<sinox:inputText id="#{compBean1Id}" value="#{pageViewBean.description}" />
				</ui:define>
				
			</ui:decorate>
		
		</ui:decorate>

	</ui:define>
	

	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{codeSetManageAction.saveAction}" title="保存"
			onstart="this.disabled=true"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			update="#{commonContentViewBean.parent.id}_form">
			<h:inputHidden value="#{pageViewBean.id}" /> 
		</p:commandButton>
		
		<p:commandButton title="关闭" type="button"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
		</p:commandButton>
	</ui:define>
</ui:composition>